using System.ComponentModel;

namespace ibba.src.noriskbo.Models
{
    public abstract class ModelBase : INotifyPropertyChanged
    {
        #region INotifyPropertyChanged Members

        public event PropertyChangedEventHandler PropertyChanged;

        #endregion

        protected virtual void OnPropertyChanged(string name)
        {
            PropertyChangedEventArgs e = new PropertyChangedEventArgs(name);

            if (PropertyChanged != null)
                PropertyChanged(this, e);
        }
    }
}
